package com.dashu.park.model;


import com.dashu.base.enums.common.GenderType;
import com.dashu.base.enums.common.Status;
import com.dashu.base.enums.enterprise.WorkersType;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "ds_enterprise_workers")
@Data
public class EnterpriseWorkers implements Serializable {
    /**
     * 员工属性
     */
    @Id
    private long id; //主键id
    private long createTime;//创建时间
    private long createUser;// 创建者
    private long updateTime;//更新时间
    private long updateUser;//更新者
    private String workersName; //姓名
    @Enumerated(EnumType.STRING)
    private GenderType gender; //性别
    @Enumerated(EnumType.STRING)
    private WorkersType workersType; //员工类型
    private long workersPhone; //员工号码
    private long enterpriseId; //所属学校
    private long departmentId; //所属部门
    private String icon; //icon
    private long attendanceId;
    private long gateId;
    @Enumerated(EnumType.STRING)
    private Status status;
    private String position; //职务
    private String post; //岗位
}
